package ooday04home;
import java.util.Timer;
import java.util.TimerTask;

public class TimerDemo {
    public static void main(String[] args) {
        Timer timer = new Timer();
        int a=100;
        timer.schedule(new TimerTask() {
            @Override
            public void run() {
                System.out.println("该起床啦");
            }
        }, a,a);

      /* Timer timer=new Timer();
       int a=100;
       timer.schedule(new TimerTask() {
           @Override
           public void run() {
               System.out.println("快去敲java代码");

           }
       }, a,a);

       */

    }
}
